/*生产环境*/

const webpack = require('webpack');
const merge = require('webpack-merge');
const common = require('./webpack.common');
const Uglifyjs = require('uglifyjs-webpack-plugin');//js压缩

module.exports = merge(common,{
    devtool: 'inline-source-map',
    plugins:[
        new Uglifyjs({
            sourceMap: true
        }),
        new webpack.DefinePlugin({
            'process.env.NODE_ENV':JSON.stringify('production')
        }),
    ]
})